package com.sig.load;

import java.io.File;
import java.io.InputStream;
import java.io.Serializable;
import java.util.List;

import android.util.Log;

import com.sig.models.Segment;
import com.sig.models.Triangle;

public class LoadAllElements implements LoadAllElementsInterface,Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	LoadPolygons polygons;
	LoadRoads roads;
	
	/**
	 * 
	 * @param file
	 * 				file[0]: polygons file
	 * 				file[1]: roads file
	 */
	public LoadAllElements(File[]infile) {
		super();
		this.polygons = new LoadPolygons(infile[0]);
		this.roads = new LoadRoads(infile[1]);		
	}
	
	public List<List<Triangle>> getAllTriangles(){
		return polygons.getListePolygons();
	}
	
	public List<List<Segment>> getAllSegments(){
		return roads.getListeRoads();
	}
	
	
	

}
